package day3;

import java.util.Arrays;

/**
 * @author oldliu
 * @since 1.0
 */
public class SplitTest {
    public static void main(String[] args) {
        //正则表达式
        String str="盐崎丰20丽萍15王凯旋40系组成19胡冰22";
        String reg="[\\u4e00-\\u9fa5]+\\.(rar|zip)";
        String name = "老刘.rar";//^  $
        boolean m = name.matches(reg);
        System.out.println(m);
        String[] sr = str.split("\\d+");
        System.out.println(Arrays.toString(sr));
        String s5="士大夫精神独立数量sdlfjsldf233sdf2356j^lkjdfslkflS的封建时代";

    }
}
